<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateDotLog extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('dot_log', function (Blueprint $table) {
            $table->increments('id');
            $table->integer("user_id")->comment("用户id")->default(0);
            $table->integer("value")->comment("变动值")->default(0);
            $table->integer("type")->comment("数据来源类型 1:高级作画 2:通过风格作画 3:查看提示词 4:充值")->default(0);
            $table->timestamp('created_at')->useCurrent();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('dot_log');
    }
}
